package com.zsc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zsc.entity.AddressBook;

import java.util.List;

/**
 * @author cjr165123050
 * @description 针对表【address_book(地址簿)】的数据库操作Service
 * @createDate 2024-05-19 11:14:19
 */
public interface AddressBookService extends IService<AddressBook> {

    /**
     * 获取当前用户所有地址
     *
     * @param addressBook
     * @return
     */
    List<AddressBook> list(AddressBook addressBook);

    /**
     * 设置默认地址
     *
     * @param addressBook
     */
    void setDefault(AddressBook addressBook);
}
